<template>
<view class="pages col" >
    <view class="cuIcon-warnfill text-cyan warn"></view>
    <view class="tips">{{tips}}</view>
    <view class="bg-cyan btn open" @click="open()">打开设置</view>
</view>

</template>
<script>
	export default {
		data() {
			return {
				
			};
		},
        name: 'open-setting',
        created(){

        },
		computed: {
			
		},
		props: {
			show: {
				type: Boolean,
				default: ''
            },
            tips: {
				type: String,
				default: ''
			}
		},
		methods: {
			open(){
                uni.openSetting({
                    success(res) {
                        console.log(res)
                    }
                });
            },
		}
	}
</script>

<style lang="scss">

    .pages{
        justify-content: center;
        position: fixed;
        top: 0rpx;
        left: 0rpx;
        width: 100%;
    }
    .warn{
        font-size: 150rpx;
        margin-bottom: 50rpx;
        color: $uni-color-warning;
    }
    .tips{
        width: 500rpx;
        text-align: center;
    }
    .open{
        margin: 50rpx 0;
        background: $uni-color-warning;

    }
</style>